# coding=utf-8
# style I
for i in range(1,10):
    for j in range(1,i+1):
        print "%d*%d=%2d" %(j,i,i*j),
    print


# style II
print '\n'.join(map(lambda i: ' '.join(map(lambda j: '%s*%s=%2s' % (j, i, j*i), range(1, i+1))), range(1, 10)))